<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="tz" uri="/WEB-INF/tld/tz.tld"%>

<%
  String path = request.getContextPath();
  int port = request.getServerPort();
  String basePath = null ;
  if(port==80){
    basePath =  request.getScheme()+"://"+request.getServerName()+path;
  }else {
    basePath =  request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
  }
  pageContext.setAttribute("basePath" ,basePath);
  pageContext.setAttribute("adminPath" ,basePath+"/admin");
  pageContext.setAttribute("weixinPath" ,basePath+"/weixin");
%>

